package com.google.code.p.restrpc.client.proxy;

import com.google.code.p.restrpc.RpcClientException;


/**
 * Throws this if any biz error response received from server
 * 
 * @author dz
 */
public class RpcBizException extends RpcClientException {
    
    private String code;
    
    private String detail;
    
    public RpcBizException() {
        super();
    }
    
    public RpcBizException(String message, Throwable cause) {
        super(message, cause);
    }
    
    public RpcBizException(String message) {
        super(message);
    }
    
    public RpcBizException(Throwable cause) {
        super(cause);
    }
    
    public RpcBizException(String message, String code, String detail) {
        super(message);
        this.code = code;
        this.detail = detail;
    }
    
    public RpcBizException(String message,
                           Throwable cause,
                           String code,
                           String detail) {
        super(message, cause);
        this.code = code;
        this.detail = detail;
    }
    
}
